package il.ac.tau.cg.ex3.math;

public class Params
{
	private double u;
	private double v;

	public Params(double u, double v)
	{
		this.u = u;
		this.v = v;
	}
	
	public double getU()
	{
		return u;
	}
	
	public void setU(double u)
	{
		this.u = u;
	}

	public double getV()
	{
		return v;
	}

	public void setV(double v)
	{
		this.v = v;
	}

	@Override
	public boolean equals(Object o)
	{
		if ((o == null) || !(o instanceof Params))
		{
			return false;
		}
		
		Params p = (Params)o;
		
		return (u == p.u) && (v == p.v); 
	}
	
	@Override
	public int hashCode()
	{
		return new Double(u + v).hashCode();
	}
}
